Current Location: Home> Function Categories> date_sub

date_sub

DateTime::sub - Subtract a certain amount of days, months, years, hours, minutes, and seconds to a DateTime object
Name:date_sub
Category:Date and time
Programming Language:php
One-line Description:Subtract the day, month, year, hour, minute, and second from the specified date.
Similar Functions